<template>
  <div
      style="width: 100%;background-color: rgba(0,0,0,1)">
    <el-menu
        :default-active="defaultUrl"
        class="el-menu-demo"
        mode="horizontal"
        @select="handleSelect"
        background-color="rgba(0, 0, 0, 0.7)"
        text-color="#999"
        active-text-color="#ffd04b"
        style="width: 100%;display: flex;justify-content: center;align-items: center;"
    router>

      <el-menu-item index="/">首页</el-menu-item>
      <el-menu-item index="2-1">分类</el-menu-item>
      <el-menu-item index="3">标签</el-menu-item>
      <el-menu-item index="5">归档</el-menu-item>
      <el-menu-item index="6">关于我们</el-menu-item>
      <el-menu-item index="/home/">后台管理</el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "IcePeachTop",
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1',
      defaultUrl:'/icePeachHome/homePage'
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style scoped>


</style>
